package com.xishu.service.print.kitchen;

import com.xishu.entity.order.Order;
import com.xishu.util.Tools;
import org.apache.commons.chain.Command;
import org.apache.commons.chain.Context;

/**
 * 将相同的菜合并成一个来打印
 */
public class CombineOrderCmd implements Command, Tools {
    private Order order;

    public CombineOrderCmd(Order order) {
        this.order = order;
    }

    @Override
    public boolean execute(Context context) throws Exception {
        KitchenService.getInstance().combineOrder(order);
        return false;
    }
}
